/* Forecast styles: owner for gap forecast settings, help window, and forecast card. */

html body .gap-forecast-settings,
html body .gap-forecast-settings details,
html body .gap-forecast-mobile-card-slot,
html body .gap-forecast-panel,
html body .gap-forecast-help-panel,
html body .gap-forecast-card {
  box-sizing: border-box !important;
}

html body .gap-forecast-panel,
html body .gap-forecast-help-panel {
  z-index: 2147483600 !important;
}

html body .gap-forecast-panel label,
html body .gap-forecast-panel .gap-forecast-check,
html body .gap-forecast-panel input[type="number"] {
  min-width: 0 !important;
  max-width: 100% !important;
}

html body .gap-forecast-actions {
  margin-top: 8px !important;
}

html body .gap-forecast-action {
  min-height: 28px !important;
}

html body .gap-forecast-status-card .gap-forecast-mobile-enable {
  margin-top: 8px !important;
  border: 1px solid rgba(14, 165, 233, 0.56) !important;
  border-radius: 999px !important;
  background: rgba(14, 165, 233, 0.18) !important;
  color: #d8f3ff !important;
  cursor: pointer !important;
  font: inherit !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  padding: 8px 11px !important;
}

html body .gap-forecast-mobile-card-slot {
  width: calc(100vw - 12px) !important;
  max-width: calc(100vw - 12px) !important;
  margin: 10px calc(50% - 50vw) 12px calc(50% - 50vw + 12px) !important;
}

html body .gap-forecast-mobile-card-slot .gap-forecast-card {
  position: static !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  overflow: visible !important;
  pointer-events: auto !important;
}

html body #chart-root.chart-area > .gap-forecast-card,
html body .chart-area > .gap-forecast-card {
  right: 14px !important;
  bottom: 72px !important;
  max-width: 380px !important;
  max-height: 220px !important;
  border-radius: 8px !important;
}

@media (max-width: 680px) {
  html body .gap-forecast-mobile-card-slot {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    margin: 8px calc(50% - 50vw + 12px) 8px !important;
  }

  html body .gap-forecast-mobile-card-slot .gap-forecast-card {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    overflow: visible !important;
    pointer-events: auto !important;
  }

  html body .gap-forecast-settings {
    position: static !important;
  }

  html body .gap-forecast-panel,
  html body .gap-forecast-help-panel {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    top: 12px !important;
    width: auto !important;
    max-height: calc(100vh - 24px) !important;
    overflow: auto !important;
    grid-template-columns: 1fr !important;
  }

  html body .gap-forecast-panel {
    padding-bottom: 12px !important;
  }

  html body .gap-forecast-actions {
    position: sticky !important;
    bottom: 0 !important;
    z-index: 2 !important;
  }

  html body #chart-root.chart-area > .gap-forecast-card,
  html body .chart-area > .gap-forecast-card {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    height: auto !important;
    min-height: 210px !important;
    max-height: 320px !important;
    margin: 10px 12px 0 !important;
    overflow: auto !important;
    pointer-events: auto !important;
  }
}

@media (max-height: 500px) and (max-width: 960px) {
  html body .gap-forecast-mobile-card-slot {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    margin: 6px calc(50% - 50vw + 12px) 6px !important;
  }

  html body .gap-forecast-mobile-card-slot .gap-forecast-card {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    overflow: visible !important;
    pointer-events: auto !important;
  }

  html body .gap-forecast-settings {
    position: static !important;
  }

  html body .gap-forecast-panel,
  html body .gap-forecast-help-panel {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    top: 12px !important;
    width: auto !important;
    max-height: calc(100vh - 24px) !important;
    overflow: auto !important;
    grid-template-columns: 1fr !important;
  }

  html body .gap-forecast-panel {
    padding-bottom: 12px !important;
  }

  html body .gap-forecast-actions {
    position: sticky !important;
    bottom: 0 !important;
    z-index: 2 !important;
  }

  html body #chart-root.chart-area > .gap-forecast-card,
  html body .chart-area > .gap-forecast-card {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    height: auto !important;
    min-height: 180px !important;
    max-height: 260px !important;
    margin: 10px 12px 0 !important;
    overflow: auto !important;
    pointer-events: auto !important;
  }
}
